<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>静态成员</title>
	</head>
	<body>
		<script>
			// function Phone(){}
			// Phone.name = 'iqoo';
			// Phone.change = function() { console.log('iqoo 12+'); }
			
			// Phone.prototype.size = '5555555';
			// let xm = new Phone();
			// console.log(xm.name);
			// console.log(xm.size);
			
			class Phone{
				static name = 'shouji';
				static change = function() { console.log('rrrssss'); }
			}
			let vivo  = new Phone();
			console.log(vivo.name);
			console.log(Phone.name);
		</script>
	</body>
</html>